﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain
{
    /// <summary>
    /// 请假
    /// </summary>
    [Table("Leave")]
    public class Leave
    {
        /// <summary>
        /// 请假ID
        /// </summary>
        [Key]
        public int LeaveId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? LeaveName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int Pid {  get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public string? LeaveType { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime LeaveSdate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime LeaveEdate { get; set; }
        /// <summary>
        /// 统计小时
        /// </summary>
        public int DateNum {  get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime ComeDate { get; set; }
        /// <summary>
        /// 请假原因
        /// </summary>
        public string? LeaveReason {  get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public string? Rolenames {  get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public bool Sart {  get; set; }=false;
        /// <summary>
        /// 审批不通过原因
        /// </summary>
        public string? ApproseIsno {  get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        public bool LeaveDel {  get; set; }=false;
       

        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }


    }
}
